<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
error_reporting(E_ERROR | E_WARNING | E_PARSE);
define("MAX_MENU_LENGTH", '3');
define("MAX_SUB_MENU_LENGTH", "5");
return [
    // 应用名称
    'app_name'               => '',
    // 应用地址
    'app_host'               => '',
    // 应用调试模式
    'app_debug'              => true,
    // 应用Trace
    'app_trace'              => false,
    // 是否支持多模块
    'app_multi_module'       => true,
    // 入口自动绑定模块
    'auto_bind_module'       => false,
    // 注册的根命名空间
    'root_namespace'         => [],
    // 默认输出类型
    'default_return_type'    => 'html',
    // 默认AJAX 数据返回格式,可选json xml ...
    'default_ajax_return'    => 'json',
    // 默认JSONP格式返回的处理方法
    'default_jsonp_handler'  => 'jsonpReturn',
    // 默认JSONP处理方法
    'var_jsonp_handler'      => 'callback',
    // 默认时区
    'default_timezone'       => 'Asia/Shanghai',
    // 是否开启多语言
    'lang_switch_on'         => false,
    // 默认全局过滤方法 用逗号分隔多个
    'default_filter'         => '',
    // 默认语言
    'default_lang'           => 'zh-cn',
    // 应用类库后缀
    'class_suffix'           => false,
    // 控制器类后缀
    'controller_suffix'      => false,

    // +----------------------------------------------------------------------
    // | 模块设置
    // +----------------------------------------------------------------------

    // 默认模块名
    'default_module'         => 'Home',
    // 禁止访问模块
    'deny_module_list'       => ['common'],
    // 默认控制器名
    'default_controller'     => 'Index',
    // 默认操作名
    'default_action'         => 'index',
    // 默认验证器
    'default_validate'       => '',
    // 默认的空模块名
    'empty_module'           => 'home',
    // 默认的空控制器名
    'empty_controller'       => 'EmptyController',
    // 操作方法前缀
    'use_action_prefix'      => false,
    // 操作方法后缀
    'action_suffix'          => '',
    // 自动搜索控制器
    'controller_auto_search' => true,

    // +----------------------------------------------------------------------
    // | URL设置
    // +----------------------------------------------------------------------

    // PATHINFO变量名 用于兼容模式
    'var_pathinfo'           => 's',
    // 兼容PATH_INFO获取
    'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
    // pathinfo分隔符
    'pathinfo_depr'          => '/',
    // HTTPS代理标识
    'https_agent_name'       => '',
    // IP代理获取标识
    'http_agent_ip'          => 'X-REAL-IP',
    // URL伪静态后缀
    'url_html_suffix'        => 'html',
    // URL普通方式参数 用于自动生成
    'url_common_param'       => false,
    // URL参数方式 0 按名称成对解析 1 按顺序解析
    'url_param_type'         => 0,
    // 是否开启路由延迟解析
    'url_lazy_route'         => false,
    // 是否强制使用路由
    'url_route_must'         => false,
    // 合并路由规则
    'route_rule_merge'       => false,
    // 路由是否完全匹配
    'route_complete_match'   => false,
    // 使用注解路由
    'route_annotation'       => false,
    // 域名根，如thinkphp.cn
    'url_domain_root'        => '',
    // 是否自动转换URL中的控制器和操作名
    'url_convert'            => true,
    // 默认的访问控制器层
    'url_controller_layer'   => 'controller',
    // 表单请求类型伪装变量
    'var_method'             => '_method',
    // 表单ajax伪装变量
    'var_ajax'               => '_ajax',
    // 表单pjax伪装变量
    'var_pjax'               => '_pjax',
    // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
    'request_cache'          => false,
    // 请求缓存有效期
    'request_cache_expire'   => null,
    // 全局请求缓存排除规则
    'request_cache_except'   => [],
    // 是否开启路由缓存
    'route_check_cache'      => false,
    // 路由缓存的Key自定义设置（闭包），默认为当前URL和请求类型的md5
    'route_check_cache_key'  => '',
    // 路由缓存类型及参数
    'route_cache_option'     => '',

    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl'  => Env::get('think_path') . 'tpl/dispatch_jump.tpl',
    'dispatch_error_tmpl'    => Env::get('think_path') . 'tpl/dispatch_jump.tpl',

    // 异常页面的模板文件
    'exception_tmpl'         => Env::get('think_path') . 'tpl/think_exception.tpl',

    // 错误显示信息,非调试模式有效
    'error_message'          => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg'         => false,
    // 异常处理handle类 留空使用 \think\exception\Handle
    'exception_handle'       => '',

    //分页配置
    'paginate'               => [
        'type'      => 'clt\Bootstrap',
        'var_page'  => 'page',
        'list_rows' => 15,
        'page_size' => 5, //页码数量
        'page_button' => [
            'total_rows' => true, //是否显示总条数
            'turn_page' => true, //上下页按钮
            'turn_group' => true, //上下组按钮
            'first_page' => true, //首页
            'last_page' => true  //尾页
        ]
    ],
    'pageSize' => 15,
    //自定义配置
    'sys_name' => 'VVME管理后台',
    //文件上传
    'addwater' => false,
    'watertext' => 'VVME',
    'version' => '6.0',

    //阿里云短信账号
    'aliAccessKeyId' => 'vvme@bjhwdl',
    'aliaccessKeySecret' => 'vvme1234',

    //微信支付商户号
    'wxpay' => [
        'appid' => '',
        'mch_id' => '',
        'api_key' => '',
        'pay_notify_url' => 'http://vvme.avik-bj.com/api/pay/applet/notify',
        'refund_notify_url' => 'http://vvme.avik-bj.com/pay/applet/wxRefundNotify',
    ],

    //支付宝
    'alipay' => [
        'appId' => '',
        'gatewayUrl' => 'https://openapi.alipay.com/gateway.do',
        'rsaPrivateKey' => 'MIIEogIBAAKCAQEAkzRasQvLUXanenyGAlcqmMzYJt30Ni8jZu1BZlDvjKRs/RrfsvSkNQ/Eoc94ZceWB5OlHtlXha33heV/2K3fwsbyOhAcbkLDDs7uM40hybTYO0i/nP+zYxgLqvTVzrfsV7azlrNehMBEHmYw5IcsgtEnMp6hRRFlCypnlJsHEMGMdp08AiucSmS5JeKS/KfrGTHUUbgE6b105jBzn+5MpD7yuIDINFrxY4VMkLgZC/3HnUIAdGmdoW0cg/s5v/1VmBg8JDBPcZiftqp8Wdc0QMfhTiKOBF7Ey1zTnHMi1kgZY3WJ8u3t+Zu9mO1HqgvefyQTQDGnvlUa6VpnwjUfw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GDi6eayrQ8zMVcbBMV7q7+KUQgRWeIXUN4lh7797sQZB59nDTyqaBWPl9zz6PKo+301YXZW6RklgdIVZXYeY42qYrt8zVP+SGLLNKqgluGO/jQbo+p4rsn5ZRf1EPVUEyhvXFgK0fBa0xHYTfWiQ=', //私有密钥（步骤二中生成的商户私有秘钥）
        'alipayrsaPublicKey' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkzRasQvLUXanenyGAlcqmMzYJt30Ni8jZu1BZlDvjKRs/RrfsvSkNQ/Eoc94ZceWB5OlHtlXha33heV/2K3fwsbyOhAcbkLDDs7uM40hybTYO0i/nP+zYxgLqvTVzrfsV7azlrNehMBEHmYw5IcsgtEnMp6hRRFlCypnlJsHEMGMdp08AiucSmS5JeKS/KfrGTHUUbgE6b105jBzn+5MpD7yuIDINFrxY4VMkLgZC/3HnUIAdGmdoW0cg/s5v/1VmBg8JDBPcZiftqp8Wdc0QMfhTiKOBF7Ey1zTnHMi1kgZY3WJ8u3t+Zu9mO1HqgvefyQTQDGnvlUa6VpnwjUfwwIDAQAB', //商户公钥（步骤二中生成的商户公钥）
        'alipayPublicKey' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkzwC/pgUIXRAfbhsm+iLKhO0/cDslLCT7bMY6ak6Ds92KsJbYiIuZZEIfd/th0LUU7MltvSLJNHen/422zOGEt6Cx/7w0EmoPBfFe9CV/bmfKegtT7kxXNN//V7Sim+DD7Hse95v0FCMWV5fYSCo0A7nP7nDwzvf2FDgiNTJ0cBh1JNxwG7Za/glqhnBi2kAG6AGEzmOpJBJfDRJuTdTGPzyfwXYE0pPL/E60OHBBbpPeSRfjJcYfBxFMLgTNLb7Z0p4Pz7TVIwe8ALwOiA6M00ldm73J0C2N6ZIv3Ihq5esu66QHrs+K7o7Zwa/I+cLM2Grabn8H6hbu4JWjpN8RwIDAQAB', //支付宝公钥
        'format' => 'json',
        'charset' => 'UTF-8',
        'signType' => 'RSA2',
    ],
    'news_type' => [0 => '', 1 => '优秀案例', 2 => '护理推荐', 3 => '好物种草', 4 => '科普课堂', 5=>'爆品推荐'], //新闻栏目
    'material_type' => [1 => '朋友圈素材', 2 => '案例素材'], //素材
    'course_type' => [1 => '免费课程', 2 => '收费课程', 3 => '会员专享', 4 => '加密课程'], //课程
    'file_type' => [1 => '文件夹', 2 => '文档', 3 => '图片', 4 => '音频', 5 => '视频'],
    'user_type' => [1 => '普通用户', 2 => '会员用户', 3 => '加盟商'],
    'agent_goods_category' => [1 => '院装', 2 => '客装'],
    // 'img_host' => 'http://',
    'img_host' => 'http://vvme.avik-bj.com',

    //小程序配置
    'xcx_appid'     => '',
    'xcx_appsecret' => '',
];
